<!doctype html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $html_title;?></title>
<meta name="author" content="ynwebs">
<meta name="copyright" content="ynwebs Inc. All Rights Reserved">
<meta name="renderer" content="webkit">
<meta name="renderer" content="ie-stand">
<meta name="keywords" content="<?php echo $seo_keywords; ?>" />
<meta name="description" content="<?php echo $seo_description; ?>" />
<link rel="shortcut icon" href="/favicon.ico" />
<?php echo html_entity_decode(sysconf('qq_appcode'),ENT_QUOTES); ?>
<?php echo html_entity_decode(sysconf('sina_appcode'),ENT_QUOTES); ?>
<?php echo html_entity_decode(sysconf('share_qqzone_appcode'),ENT_QUOTES); ?>
<?php echo html_entity_decode(sysconf('share_sinaweibo_appcode'),ENT_QUOTES); ?>
<link href="__SHOP_DEFAULT__/css/base.css" rel="stylesheet" type="text/css">
<link href="__SHOP_DEFAULT__/css/store_header.css" rel="stylesheet" type="text/css">
<link href="__SHOP_RESOURCE__/font/font-awesome/css/font-awesome.min.css" rel="stylesheet" />

<style type="text/css">
body {_behavior: url(__SHOP_DEFAULT__/css/csshover.htc);}
</style>
<!--[if IE 7]>
  <link rel="stylesheet" href="__SHOP_RESOURCE__/font/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="__SITE_RESOURCE__/js/html5shiv.js"></script>
      <script src="__SITE_RESOURCE__/js/respond.min.js"></script>
<![endif]-->
<!--[if IE 6]>
<script src="__SITE_RESOURCE__/js/IE6_PNG.js"></script>
<script>
DD_belatedPNG.fix('.pngFix');
</script>

<script>
// <![CDATA[
if((window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0)&&(document.execCommand))
try{
document.execCommand("BackgroundImageCache", false, true);
   }
catch(e){}
// ]]>
</script>
<![endif]-->
<script>
   var CART_AJAX_LOAD = '{:url("shop/Cart/ajax_load")}';
		var CART_DEL = '{:url("shop/Cart/del")}';
		var CART_ADD = '{:url("shop/Cart/add")}';
		var MEMBER_LOGIN = '{:url("member/Login/index")}?ref_url={:urlencode(FU_current_url())}';
		var VIEWED_INFO = '{:url("shop/Index/viewed_info")}';
		var MEMBER_FAVOR_STORE = '{:url("member/Favoritestore/favoritestore")}';
		var MEMBER_FAVOR_GOODS = '{:url("member/Favoritegoods/favoritegoods")}';
		var SHOP_LOGIN = '{:url("shop/index/login")}';
		var MEMBER_CON_QQ = '{:url("member/ConnectQq/index")}';
		var MEMBER_CON_SINA = '{:url("member/Connectsina/index")}';
		var MEMBER_CART_INDEX = '{:url("member/Card/index")}';
		var MEMBER_SNS_INDEX = '{:url("member/Snshome/index")}';
		var MEMBER_CART_MINFO = '{:url("member/Card/mcard_info")}';
		var MEMBER_MESS_SEN = '{:url("member/Message/sendmsg")}';
		var MEMBER_SNS_ADDFOLLOW = '{:url("member/Snsfriend/addfollow")}';
		var JSON_AREA = '{:url("shop/Index/json_area_show")}';
		
		
		
    var COOKIE_PRE = '<?php echo COOKIE_PRE;?>';
    var _CHARSET = 'utf-8';
    var LOGIN_SITE_URL = '<?php echo LOGIN_SITE_URL;?>';
    var MEMBER_SITE_URL = '<?php echo MEMBER_SITE_URL;?>';
    var SITEURL = '__PUBLIC__';
    var SHOP_SITE_URL = '__SHOP_SITE_URL__';
    var RESOURCE_SITE_URL = '__SITE_RESOURCE__';
    var SHOP_TEMPLATES_URL = '__SHOP_DEFAULT__';
</script>
<script src="__SITE_RESOURCE__/js/jquery.js"></script>
<script src="__SITE_RESOURCE__/js/common.js" charset="utf-8"></script>
<script src="__SITE_RESOURCE__/js/jquery-ui/jquery.ui.js"></script>
<script type="text/javascript" src="__SHOP_DEFAULT__/custom/js/Marquee.js" charset="utf-8"></script>
<script src="__SITE_RESOURCE__/js/jquery.validation.min.js"></script>
<script src="__SITE_RESOURCE__/js/jquery.masonry.js"></script>
<script src="__SITE_RESOURCE__/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
</head>
<body>
<!-- PublicTopLayout Begin -->
{include file="common/top" /}
<!-- PublicHeadLayout Begin -->
<div class="header-wrap">
  <header class="public-head-layout wrapper">
    <h1 class="site-logo">
    	<a href="{:url('home/Index/index')}">
    		<img src="{:sysconf('site_logo')}" class="pngFix">
    	</a>
    </h1>
	<div class="heade_store_info">
    	<div class="slogo">
        	<a href="<?php echo url('shop/Showstore/index', array('store_id'=>$store_info['store_id']));?>" title="<?php echo sysconf('site_name'); ?>" class="store_name"><?php echo $store_info['store_name']; ?></a>
        	<img src="__SHOP_DEFAULT__/images/store_grade/{$store_info['grade_id']}.png" class="pngFix">
            <br>
            <span class="all-rate">
           <span member_id="<?php echo $store_info['member_id'];?>"></span>
    <?php if(!empty($store_info['store_qq'])){?>
    <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $store_info['store_qq'];?>&site=qq&menu=yes" title="QQ: <?php echo $store_info['store_qq'];?>"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo $store_info['store_qq'];?>:52" style=" vertical-align: middle;"/></a>
    <?php }?>
    <?php if(!empty($store_info['store_ww'])){?>
    <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<?php echo $store_info['store_ww'];?>&site=cntaobao&s=1&charset=<?php echo CHARSET;?>" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo $store_info['store_ww'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>" alt="<?php echo $lang['nc_message_me'];?>" style=" vertical-align: middle;"/></a>
    <?php }?>
            </span>
        </div>
        <div class="pj_info">
        	{if(!empty($store_info['store_credit']) && is_array($store_info['store_credit']))}
        	<?php  foreach ($store_info['store_credit'] as $value) {?>
            <div class="shopdsr_item">
                <div class="shopdsr_title"><?php echo $value['text'];?></div>
                <div class="shopdsr_score"><?php echo $value['credit'];?></div>
            </div>
            <?php } ?>
            {/if}
    	</div>
        <div class="sub">
        	{include file="shop/showstore/common/store_info" /}
        </div>
	</div>
    <div class="heade_service_info">
        <div class="displayed">
            <div>手机逛</div>
            <i></i>
            <div class="sub">
               <img src="<?php echo storeQRCode($store_info['store_id']);?>" title="店铺二维码，使用手机扫一扫逛起吧">
               <p>扫一扫，手机逛起来</p>
            </div>
        </div>
       </div>
    <div class="head-search-bar" id="search">
        <form class="search-form" method="get" action="{:url('shop/Search/index')}" name="formSearch" id="formSearch">
          <input type="hidden" name="keyword" value="<?php echo I('param.inkeyword');?>" />
          <input name="inkeyword" id="inkeyword" type="text" class="input-text" value="<?php echo I('param.inkeyword');?>" x-webkit-speech lang="zh-CN" onwebkitspeechchange="foo()" x-webkit-grammar="builtin:search" placeholder="输入商品关键字" />
          <a href="javascript:void(0)" class="search-btn-all" nctype="search_in_shop"><span>搜茶网</span></a>
          <a href="javascript:void(0)" class="search-btn-store" nctype="search_in_store"><span>搜本店</span></a>
        </form>
      </div>
  </header>
  </div>
<!-- PublicHeadLayout End -->
<div id="store_decoration_content" class="background" style="<?php echo $decoration_background_style;?>">
<?php if(!empty($decoration_nav)) {?>
<style><?php echo $decoration_nav['style'];?></style>
<?php } ?>
<div class="ncsl-nav">
    	<!--店铺横幅-->
    	<?php require ROOT_PATH."theme/default/shop/showstore/".$store_info['store_theme']."/store_banner.html";?>
    <div id="nav" class="ncs-nav">
      <ul>
	  <?php if(!empty($goods_class_list)){?>
        <li id="store_nav_class_button" class="normal ncs-nav-classes"> 
          <!-- 店铺商品分类 --> 
          <a href="<?php echo url('shop/Showstore/goods_all', array('store_id' => $store_info['store_id']));?>"><span>本店所有分类<i></i></span></a>
          <ul id="store_nav_class_menu" class="classes-menu" style="display:none;">
            <?php if(!empty($goods_class_list) && is_array($goods_class_list)){?>
            <?php foreach($goods_class_list as $value){?>
            <li class="store-nav-class-sub-menu"><a href="<?php echo url('shop/Showstore/goods_all', array('store_id' => $store_info['store_id'], 'stc_id' => $value['stc_id']));?>" title="<?php echo $value['stc_name'];?>"><i></i><?php echo $value['stc_name'];?></a>
              <?php if(!empty($value['children']) && is_array($value['children'])){?>
              <ul class="store-nav-class-menu-item" style="display:none;">
                <?php foreach($value['children'] as $value1){?>
                <li><a style="color:#000" href="<?php echo url('shop/Showstore/goods_all', array('store_id' => $store_info['store_id'], 'stc_id' => $value1['stc_id']));?>" title="<?php echo $value1['stc_name'];?>"><i></i><?php echo $value1['stc_name'];?></a></li>
                <?php }?>
              </ul>
              <?php }?>
            </li>
            <?php }?>
            <?php }?>
          </ul>
        </li>
		<?php }?>
        <li class="<?php if($page == 'index' && count(get_numerics(request()->url())) == 1){?>active<?php }else{?>normal<?php }?>"><a href="<?php echo url('shop/Showstore/index', array('store_id'=>$store_info['store_id']));?>"><span>店铺首页<i></i></span></a></li>
        <?php if(!empty($store_navigation_list)){
      		foreach($store_navigation_list as $value){
                if($value['sn_if_show']) {
      			if($value['sn_url'] != ''){?>

          <!--<li class="<?php if($page == $value['sn_id']){?>active<?php }else{?>normal<?php }?>"><a href="<?php echo $value['sn_url']; ?>" <?php if($value['sn_new_open']){?>target="_blank"<?php }?>><span><?php echo $value['sn_title'];?><i></i></span></a></li>-->
          <li class="{if count(get_numerics(request()->url())) eq 2 && get_numerics(request()->url())[1] eq get_numerics($value['sn_url'])[1]}active{else/}normal{/if}"><a href="<?php echo $value['sn_url']; ?>" <?php if($value['sn_new_open']){?>target="_blank"<?php }?>><span><?php echo $value['sn_title'];?><i></i></span></a></li>
        <?php }else{ ?>
        <li class="<?php if($page == $value['sn_id']){?>active<?php }else{?>normal<?php }?>"><a href="<?php echo url('shop/Showstore/show_article', array('store_id' => $store_info['store_id'], 'sn_id' => $value['sn_id']));?>"><span><?php echo $value['sn_title'];?><i></i></span></a></li>
        <?php }}}} ?>
        <li class="<?php if ($page == 'store_sns') {?>active<?php }else{?>normal<?php }?>"><a href="<?php echo url('shop/Showsnshome/index', array('sid' => $store_info['store_id']))?>"><span>店铺动态<i></i></span></a></li>
      </ul>
    </div>
  </div>
</div>
<script type="text/javascript">
var PRICE_FORMAT = '￥%s';
$(function(){
		$('a[nctype="search_in_store"]').click(function(){
		if ($('#inkeyword').val() == '') {
			return false;
		}
		$('#formSearch').attr('action','{:url("shop/Showstore/goods_all")}');
		$('<input type="hidden" value="<?php echo $store_info['store_id'];?>" name="store_id" /> <input type="hidden" name="op" value="goods_all" />').appendTo("#formSearch");
		$('#formSearch').submit();
	});
	$('a[nctype="search_in_shop"]').click(function(){
		document.formSearch.keyword.value=document.formSearch.inkeyword.value;
		if ($('#inkeyword').val() == '') {
			return false;
		}
		$('#formSearch').submit();
	});
	$("#formSearch").keydown(function(e){
         if(e.keyCode == 13){
			document.formSearch.keyword.value=document.formSearch.inkeyword.value;
			}
		});
	$('#inkeyword').css("color","#999999");
  //店铺商品分类
    $('#store_nav_class_button').on('mouseover', function() {
        $('#store_nav_class_menu').show();
    });
    $('#store_nav_class_button').on('mouseout', function() {
        $('#store_nav_class_menu').hide();
    });
    $('.store-nav-class-sub-menu').on('mouseover', function() {
        $('.store-nav-class-menu-item').hide();
        $(this).children('.store-nav-class-menu-item').show();
    });
    $('.store-nav-class-sub-menu').on('mouseout', function() {
        $('.store-nav-class-menu-item').hide();
    });
});
  </script>